package com.cmii.sjw.department.control.jsc.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cmii.sjw.department.control.jsc.model.User;
import com.cmii.sjw.department.control.jsc.model.dto.UserQueryDTO;
import com.cmii.sjw.department.control.jsc.model.entity.Menu;
import com.cmii.sjw.department.control.jsc.model.entity.Role;

import java.util.List;

/**
 * 用户 业务层
 *
 * @author jfh
 */
public interface IUserService
{
    /**
     * 根据条件分页查询用户列表
     *
     * @param user 用户信息
     * @return 用户信息集合信息
     */
    List<User> selectUserList(UserQueryDTO user);


    List<Role> getUserRoles(Long userId);

    List<Menu> getUserMenus(Long userId);

    Long count(LambdaQueryWrapper<User> in);

    User getById(long userId);

    String updateById(User user);
}
